package com.ecnu.common.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

//import lombok.Data;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Configuration;
//
// EmailConfig.java
@Configuration
@ConfigurationProperties(prefix = "email.config")
@Data
public class EmailConfig {
    private String fromAddress;
    private String fromName;
    private Smtp smtp;

    @Data
    public static class Smtp {
        private String host;
        private Integer port;
        private String username;
        private String password;
    }
}
